package com.yswy.domain.entity;

import com.alipay.api.domain.PeriodRuleParams;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yswy.domain.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("vip价格表")
@TableName(value = "vip_price")
public class VipPrice extends BasePojo<VipPrice> {
    @ApiModelProperty("商品类型 0 金币购买  1 vip购买")
    private Integer goodType;
    @ApiModelProperty("价格(分)")
    private Integer price;
    @ApiModelProperty("发放金币数")
    private Integer moneyCode;
    @ApiModelProperty("时间")
    private Long vipTime;
    @ApiModelProperty("0 小时 1 天 2 月 3 年")
    private String vipTimeType;


    @ApiModelProperty("是否可以使用支付宝支付")
    private Boolean isZfbPay;
    @ApiModelProperty("是否可以使用微信支付")
    private Boolean isWxPay;
    @ApiModelProperty("显示状态 0:不显示 1:显示")
    private Integer salesStatus;
    @ApiModelProperty("是否是新手套餐 ")
    private Boolean isDisposable;

    @ApiModelProperty("说明")
    private String descDetails;
    @ApiModelProperty("标签")
    private String tags;
    @ApiModelProperty("价格字符串")
    private String priceString;
    @ApiModelProperty("原价")
    private String originalPrice;
    @ApiModelProperty("发放金币数字符串")
    private String moneyCodeString;
    @ApiModelProperty("赠送说明字符串")
    private String giveString;
    @ApiModelProperty("背景图Url")
    private String bgImg;
    @ApiModelProperty("商品名字")
    private String vipName;


    //周期扣款配置
    @ApiModelProperty("是否是周期付款产品")
    private Boolean isWithdrawal;
    @ApiModelProperty("续费说明")
    private String illustrate ;
    @ApiModelProperty("配置类型  0 正常   1 ")
    private Integer agreemenType;
    @ApiModelProperty("首期付款价格(分)")
    private Integer agreemenPriceOne;
    @ApiModelProperty("价格(分)")
    private Integer agreemenPrice;
    @ApiModelProperty("添加会员时间")
    private Long agreemenTime;
    @ApiModelProperty("添加会员时间 0 小时 1 天 2 月 3 年")
    private String agreemenTimeType;
    @ApiModelProperty("收款周期(收几期)")
    private Long agreemenPayments;
    @ApiModelProperty("当天收款延后时间")
    private Integer collTime;
    @ApiModelProperty("当天收款延后时间类型")
    private String collTimeType;
    @ApiModelProperty("每期扣款次数")
    private Integer agreemenPayNum;



    @TableField(exist = false)
    private PeriodRuleParams periodRuleParams ;
}
